﻿namespace NEvoWeb.Modules.NB_Store
{
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Runtime.CompilerServices;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class AdminDashboard : BaseAdminModule
    {
        [AccessedThroughProperty("PlaceHolder1")]
        private PlaceHolder _PlaceHolder1;

        public AdminDashboard()
        {
            base.Load += new EventHandler(this.Page_Load);
        }

        private void Page_Load(object sender, EventArgs e)
        {
            try
            {
                string s = Conversions.ToString(SharedFunctions.getLangCache(this.PortalId, "dashboardmsgtext", SharedFunctions.GetCurrentCulture()));
                bool flag = SharedFunctions.GetStoreSettingBoolean(this.PortalId, "debug.mode", "XX");
                if ((s == "") | flag)
                {
                    s = SharedFunctions.GetMsgText(Conversions.ToString(this.PortalId), "dashboard.text", "");
                    this.PlaceHolder1.Controls.Add(new LiteralControl(HttpUtility.HtmlDecode(s)));
                    SharedFunctions.setLangCache(this.PortalId, "dashboardmsgtext", SharedFunctions.GetCurrentCulture(), s, 120);
                }
                else
                {
                    this.PlaceHolder1.Controls.Add(new LiteralControl(HttpUtility.HtmlDecode(s)));
                }
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                ProjectData.ClearProjectError();
            }
        }

        protected virtual PlaceHolder PlaceHolder1
        {
            get
            {
                return this._PlaceHolder1;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                this._PlaceHolder1 = value;
            }
        }
    }
}

